package marchsoft.modules.selfFish.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import marchsoft.modules.selfFish.finance.entity.Cost;
import marchsoft.modules.selfFish.finance.entity.vo.CostVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.cache.annotation.CacheConfig;

import java.util.Map;

/** 费用清单
 * @title CostMapper
 * @description 费用清单
 * @author Lenovo
 * @version 1.0
 * @create 2024-07-15 17:02
 */
@Mapper
@CacheConfig(cacheNames = "cost")
public interface CostMapper extends BaseMapper<Cost> {

    /** 查询
     * @param zhName: 物品的名称
     * @param page: 分页对象
     * @return IPage<FishVo> 分页数据
     * @description :  获取费用列表
     */
    IPage<CostVo> getCostList(Page<T> page, @Param("zhName") String zhName);

    /** 查询费用总计
     * @return Map<String, Object>
     * @description :  获取费用总计
     */
    Map<String, Object> getCostTotal();
}
